﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="default.aspx.cs" Inherits="EMS.reports.expense._default" %>

<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<%@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="radM" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Src="~/usercontrols/Pagetitle.ascx" TagName="PageTitle" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <uc1:PageTitle ID="PageTitle" PageID="19" runat="server" />
    <table class="searchform" width="1000px">
        <tbody>
            <tr>
                <td class="label_display">
                    Masraf Tipi :
                </td>
                <td>
                    <asp:DropDownList ID="ddlEXPENSETYPE" Width="200px" runat="server">
                    </asp:DropDownList>
                </td>
                <td class="label_display">
                    Masraf Tarihi :
                </td>
                <td>
                    <radCln:RadDatePicker ID="rdpSTARTDATE" runat="server" DateInput-DateFormat="dd.MM.yyyy"
                        MaxDate="2050-01-01" MinDate="2005-01-01" Width="110">
                        <DateInput DateFormat="dd.MM.yyyy" Skin="master"></DateInput>
                    </radCln:RadDatePicker>
                    <radCln:RadDatePicker ID="rdpENDDATE" runat="server" DateInput-DateFormat="dd.MM.yyyy"
                        MaxDate="2050-01-01" MinDate="2005-01-01" Width="110">
                        <DateInput DateFormat="dd.MM.yyyy" Skin="master"></DateInput>
                    </radCln:RadDatePicker>
                </td>
            </tr>
            <tr>
                <td class="label_display">
                    Ödeme Tipi :
                </td>
                <td>
                    <asp:DropDownList ID="ddlEXPENSEPAYMENTTYPE" Width="200px" runat="server">
                    </asp:DropDownList>
                </td>
                <td class="label_display">
                    Kullanıcı :
                </td>
                <td>
                    <asp:DropDownList ID="ddlUSER" Width="200px" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="label_display">
                    Ödeme Aracı :
                </td>
                <td>
                    <asp:DropDownList ID="ddlEntity" Width="200px" runat="server">
                    </asp:DropDownList>
                </td>
                <td colspan="2">
                    <asp:CheckBox ID="chkInstallment" runat="server" Text="Taksitleri dahil et" />
                </td>
            </tr>
            <tr>
                <td colspan="4" align="right">
                    <table>
                        <tbody>
                            <tr>
                                <td>
                                    <asp:Button ID="btnSearch" OnClick="btnSearch_Click" runat="server" Text="Ara" />
                                </td>
                                <td>
                                    <asp:Button ID="btnExport" OnClick="btnExport_Click" runat="server" Text="Excel'e Aktar" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <radG:RadGrid ID="rgMaster" CssClass="list" runat="server" Skin="master" GridLines="None"
        AllowPaging="True" AllowSorting="True" Width="100%" AutoGenerateColumns="False"
        PageSize="30" ShowFooter="true" EnableAJAX="true" ShowStatusBar="false" EnableViewState="true"
        LoadingTemplateTransparency="55" EnableAJAXLoadingTemplate="True" OnNeedDataSource="rgMaster_NeedDataSource"
        OnItemDataBound="rgMaster_ItemDataBound" OnItemCommand="rgMaster_ItemCommand">
        <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" CssClass="x-of-y-navigation"
            ShowPagerText="true" PagerTextFormat="sayfaya git: {4} &amp;nbsp;|&amp;nbsp; {1} sayfanın {0}. sayfası, {5} kayıtın {2} ile {3} kayıtı"
            NextPagesToolTip="Sonraki Sayfa" PrevPagesToolTip="Önceki Sayfa" />
        <AlternatingItemStyle CssClass="alt" />
        <SortingSettings SortToolTip="Sıralamak için tıklayın" SortedAscToolTip="Artan Sırala"
            SortedDescToolTip="Azalan Sırala" />
        <MasterTableView GridLines="None" DataKeyNames="EXPENSEID" CommandItemDisplay="None">
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="False" Resizable="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <radG:GridBoundColumn UniqueName="EXPENSEID" HeaderText="Masraf ID" DataField="EXPENSEID">
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="EXPENSETYPENAME" HeaderText="Masraf Tipi" DataField="EXPENSETYPENAME">
                    <ItemStyle HorizontalAlign="left" />
                    <HeaderStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="EXPENSEDATE" HeaderText="Masraf Tarihi" DataField="EXPENSEDATE"
                    DataFormatString="{0:dd/MM/yyyy}">
                    <ItemStyle HorizontalAlign="left" />
                    <HeaderStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="AMOUNT" HeaderText="Masraf Tutarı" DataField="AMOUNT">
                    <ItemStyle HorizontalAlign="Right" />
                    <HeaderStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="EXPENSEPAYMENTTYPENAME" HeaderText="Masraf Ödeme Tipi"
                    DataField="EXPENSEPAYMENTTYPENAME">
                    <ItemStyle HorizontalAlign="left" />
                    <HeaderStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="ENTITYNAME" HeaderText="Masraf Ödeme Aracı" DataField="ENTITYNAME">
                    <ItemStyle HorizontalAlign="left" />
                    <HeaderStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="EXPENSEUSER" HeaderText="Kullanıcı" DataField="EXPENSEUSER">
                    <ItemStyle HorizontalAlign="left" Width="100px" />
                    <HeaderStyle HorizontalAlign="left" />
                    <FooterStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
                <radG:GridBoundColumn UniqueName="DESCRIPTION" HeaderText="Açıklama" DataField="DESCRIPTION">
                    <ItemStyle HorizontalAlign="left" Width="200px" Wrap="false" />
                    <HeaderStyle HorizontalAlign="left" />
                    <FooterStyle HorizontalAlign="left" />
                </radG:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ExportSettings>
            <Pdf PageWidth="8.5in" PageHeight="11in" PageTopMargin="" PageBottomMargin="" PageLeftMargin=""
                PageRightMargin="" PageHeaderMargin="" PageFooterMargin=""></Pdf>
        </ExportSettings>
        <ClientSettings EnableClientKeyValues="true">
            <Selecting AllowRowSelect="True"></Selecting>
        </ClientSettings>
    </radG:RadGrid>
</asp:Content>
